import request from '@/utils/request'
import { praseStrEmpty } from "@/utils/ruoyi";

// 查询地震事件列表
export function listCatalog(query) {
  return request({
    url: '/eq/catalog/list',
    method: 'get',
    params: query
  })
}

// 查询地震事件详情
export function getOneCatalog(catalogId) {
  return request({
    url: '/eq/catalog/' + praseStrEmpty(catalogId),
    method: 'get'
  })
}

// 修改地震事件
export function updateCatalog(data) {
  return request({
    url: '/eq/catalog',
    method: 'put',
    data: data
  })
}
